package net.sxjr.protal.zhfx;


import lombok.extern.slf4j.Slf4j;
import net.sxjr.common.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/zhfx")
@Slf4j
public class ZhfxController {
    @Autowired
    private ZhfxService zhfxService;

    @GetMapping("/zhleft")
    public Response zhleft(){
        return zhfxService.zhleft();
    }
    @GetMapping("/zhmiddle")
    public Response zhmiddle(){
        return zhfxService.zhmiddle();
    }
    @GetMapping("/zhright")
    public Response zhright(){
        return zhfxService.zhright();
    }



    @GetMapping("/mokuaiLeft")
    public Response mokuaiLeft(@RequestParam Integer type){
        return zhfxService.mokuaiLeft(type);
    }

    @GetMapping("/mokuaiMiddle")
    public Response mokuaiMiddle(@RequestParam Integer type){
        return zhfxService.mokuaiMiddle(type);
    }
    @GetMapping("/mokuaiRight")
    public Response mokuaiRight(@RequestParam Integer type){
        return zhfxService.mokuaiRight(type);
    }


}
